Improve warning
authorMatthias Clasen <mclasen@redhat.com>
Thu, 30 Oct 2014 17:41:13 +0000 (13:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 30 Oct 2014 17:41:13 +0000 (13:41 -0400)
Mention the file that we're failing to load. That makes it obvious
what is wrong.

demos/widget-factory/widget-factory.c

index a9a36e66be12fb5ef7bf30b3695651276f860987..d6bdf93b9b61fee0b8a3bd97656ba488a0eb4f24 100644 (file)
@@ -761,7 +761,7 @@ background_loaded_cb (GObject      *source,
   pixbuf = gdk_pixbuf_new_from_stream_finish (res, &error);
   if (error)
     {
-      g_warning ("%s", error->message);
+      g_warning ("Error loading '%s': %s", bd->filename, error->message);
       g_error_free (error);
       return;
     }